using ThunderJob.Bootstrapper.Configuration;
using ThunderJob.Bootstrapper.Dependency;
using Microsoft.Practices.ServiceLocation;

namespace ThunderJob.Bootstrapper
{
    public class StartUp
    {
        public static void Init()
        {
            DependencyRegistrar.EnsureRegistered();
            var startUpTasks = ServiceLocator.Current.GetAllInstances<IConfigurationTask>();
            foreach (var task in startUpTasks)
                task.Configure();
        }
    }
}
